package com.dto;

import com.utils.TimeFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Date;

public class MyMeetingDTO {


    private Integer id;

    /**
     * 会议日期
     */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date useDate;

    /**
     * 会议时间
     */
    private Integer useTime;

    private String result;

    /**
     * 会议主题
     */
    private String theme;

    /**
     * 会议室id
     */
    private Integer roomId;

    /**
     * 会议室名称
     */
    private String roomName;

    /**
     * 会议室位置
     */
    private String roomLocation;

    /**
     * atteandeeId
     */
    private Integer aid;

    /**
     * 用户签到状态
     */
    private String userCheckStatus;

    /**
     * 申请状态
     */
    private String status;

    /**
     * 签到状态
     */
    private String checkStatus;

    public MyMeetingDTO(Integer id, Date useDate, Integer useTime, String theme, Integer roomId, String roomName, String roomLocation, String status, String checkStatus,Integer aid) {
        this.id = id;
        this.useDate = useDate;
        this.useTime = useTime;
        this.theme = theme;
        this.roomId = roomId;
        this.roomName = roomName;
        this.roomLocation = roomLocation;
        this.status = status;
        this.checkStatus = checkStatus;
        this.aid = aid;
    }

    @Override
    public String toString() {
        return "MeetingDTO{" +
                "id=" + id +
                ", useDate=" + useDate +
                ", useTime=" + useTime +
                ", theme='" + theme + '\'' +
                ", roomId=" + roomId +
                ", roomName='" + roomName + '\'' +
                ", roomLocation='" + roomLocation + '\'' +
                ", status='" + status + '\'' +
                ", checkStatus='" + checkStatus + '\'' +
                '}';
    }

    public Integer getAid() {
        return aid;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }

    public String getUserCheckStatus() {
        return userCheckStatus;
    }

    public void setUserCheckStatus(String userCheckStatus) {
        this.userCheckStatus = userCheckStatus;
    }

    public Date getUseDate() {
        return useDate;
    }

    public void setUseDate(Date useDate) {
        this.useDate = useDate;
    }

    public Integer getUseTime() {
        return useTime;
    }

    public void setUseTime(Integer useTime) {
        this.useTime = useTime;

        this.result = TimeFormat.toString(useTime);
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getTheme() {
        return theme;
    }

    public void setTheme(String theme) {
        this.theme = theme;
    }

    public Integer getRoomId() {
        return roomId;
    }

    public void setRoomId(Integer roomId) {
        this.roomId = roomId;
    }

    public String getRoomName() {
        return roomName;
    }

    public void setRoomName(String roomName) {
        this.roomName = roomName;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getCheckStatus() {
        return checkStatus;
    }

    public void setCheckStatus(String checkStatus) {
        this.checkStatus = checkStatus;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRoomLocation() {
        return roomLocation;
    }

    public void setRoomLocation(String roomLocation) {
        this.roomLocation = roomLocation;
    }
}
